<%@ page import="com.google.gson.FieldAttributes" %>
<%@ page import="net.tutwiz.model.User" %>
<%@ page import="com.google.gson.GsonBuilder" %>
<%@ page import="com.google.gson.ExclusionStrategy" %>
<%@ page import="com.google.gson.Gson;" %>
<%
	response.setContentType("application/json");
	response.setCharacterEncoding("utf-8");
%>

<%
    Gson gson = new GsonBuilder().setExclusionStrategies(new ExclusionStrategy() {

       
        public boolean shouldSkipClass(Class<?> clazz) {
            return false;//(clazz == User.class);
        }
        
        /**
          * Custom field exclusion goes here
          */
        public boolean shouldSkipField(FieldAttributes f) {
            return f.getName().equals("tutorials");
        }

     }).serializeNulls().create();
    String jsonResponse = gson.toJson(request.getAttribute("parameters"));
%>
<%= jsonResponse %>
